package com.zzy.blog.handle;

public class Test {

	public static void main(String[] args) throws InterruptedException {
		HeartBeatDispatchThread hbdThread = HeartBeatDispatchThread.getInstance();
		hbdThread.start();
		
		hbdThread.addHeartBeat(new HeartBeat(1));
		hbdThread.addHeartBeat(new HeartBeat(2));
		hbdThread.addHeartBeat(new HeartBeat(3));
		hbdThread.addHeartBeat(new HeartBeat(4));
		hbdThread.addHeartBeat(new HeartBeat(5));
		hbdThread.addHeartBeat(new HeartBeat(6));
		hbdThread.addHeartBeat(new HeartBeat(7));
		hbdThread.addHeartBeat(new HeartBeat(8));
	}
}
